package com.jiugang.cardump.service;

import com.jiugang.cardump.entity.Equipment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiugang.cardump.result.ResultInfoV110;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2021-08-19
 */
public interface EquipmentService extends IService<Equipment> {

    /**
     * @Description 添加一台设备
     * @param equipment
     * @return Integer
     */
    ResultInfoV110 insertEquipment(Equipment equipment);

    /**
     * @Description 更改设备状态
     * @param id 设备编号
     * @param statu
     * @return Integer
     */
    ResultInfoV110 updateEquipmentStatu(String id,Integer statu);

    /**
     * @param id
     * @return ResultInfoV110
     * @Description 根据设备编号查询设备信息
     */
    ResultInfoV110 selectEquipmentById(String id);

    /**
     * @param equipment
     * @return ResultInfoV110
     * @Description 修改设备信息
     */
    ResultInfoV110 updateEquipment(Equipment equipment);

    /**
     * @param equipment
     * @return ResultInfoV110
     * @Description  根据条件检索所有的设备
     */
    ResultInfoV110 selectAllEquipmentByCondition(Equipment equipment);

    /**
     * @param equipmentId
     * @return ResultInfoV110
     * @Description  根据设备编号删除设备
     */
    ResultInfoV110 deleteEquipmentById(String equipmentId);




}
